package cn.getech.data.development.utils.ranger;

public class RangerRestApi {

    /***
     *  创建角色组
     *  POST /xusers/groupgroups
     * Content-Type: application/json
     * Accept: application/json
     */
    public static String CREATE_GROUP = "/service/xusers/secure/groups";

    /***
     *  获取角色组
     *  GET {groupName}
     * Content-Type: application/json
     * Accept: application/json
     */
    public static String GET_GROUP_BY_NAME = "/service/xusers/groups/groupName/";

    /***
     *  删除角色组
     *  DELETE {groupId}
     */
    public static String DELETE_GROUP_BY_ID= "/service/xusers/secure/groups/id/";


    /***
     *  获取服务的信息
     *  GET
     *  /service/public/v2/api/service/name/{name}
     */
    public static String GET_SERVICE_BY_NAME = "/service/public/v2/api/service/name/";

    /***
     *  新增服务信息
     *  POST
     *  /service/public/v2/api/service
     */
    public static String POST_ADD_SERVICE = "/service/public/v2/api/service";


    /***
     *  修改服务信息
     *  PUT
     *  /service/public/v2/api/service/name/{serviceName}
     */
    public static String PUT_UPDATE_SERVICE = "/service/public/v2/api/service/name/";


    /***
     *  删除服务信息
     *  DELETE
     *  /service/public/v2/api/service/name/{name}
     */
    public static String DELETE_SERVICE = "/service/public/v2/api/service/name/";




    /***
     *  新增策略
     *  POST
     *  /service/public/v2/api/policy
     */
    public static String POST_POLICY = "/service/public/v2/api/policy";

    /***
     *  获取策略
     *  GET
     *  /service/public/v2/api/policy/{id}
     */
    public static String GET_POLICY = "/service/public/v2/api/policy/";

    /***
     *  修改策略
     *  POST
     *  /service/public/v2/api/policy/apply
     */
    public static String POST_POLICY_APPLY = "/service/public/v2/api/policy/";

    /***
     *  修改策略
     *  DELETE
     *  /service/public/v2/api/policy/{id}
     */
    public static String DELET_POLICY = "/service/public/v2/api/policy/";



    /***
     *  新增用户
     *  POST
     *  /service/xusers/secure/users
     */
    public static String POST_USER = "/service/xusers/secure/users";

    /***
     *  获取用户
     *  GET
     *  /service/xusers/users/userName/{name}
     */
    public static String GET_USER_BY_NAME = "/service/xusers/users/userName/";

    /***
     *  删除用户
     *  DELETE
     *  /service/xusers/users/userName/{name}
     */
    public static String DELETE_USER_BY_NAME = "/service/xusers/users/userName/";











}
